<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{title}}</title>
</head>

<body>
    <table>
        <tr>
            <td>角色名称：</td>
            <td><input type="text" name="rolename" value="{{res.role_name}}"></td>
        </tr>
        <tr>
            <td><input type="button" value="提交保存" onclick="save('{{res.id}}')"></td>
            <td><input type="button" value="返回" onclick="cancle()"></td>
        </tr>

    </table>

    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
    <script src="../statics/js/axios.min.js"></script>
    <script src="../statics/js/roles.js"></script>
    <!-- <script>
        $(function () {
            axios.get('/roles/' + 12).then(data => {
                let res = data.data;
                console.log(res);
                let nn = $('[name=rolename]');
                console.log(nn);
                nn.val(res.role_name);
            })
        })
    </script> -->
</body>

</html>